# Contributor: Jaroslaw Swierczynski <swiergot@aur.archlinux.org>
# Contributor: Sven Kauber <celeon@gmail.com>
# Maintainer: Daniel J Griffiths <ghost1227@archlinux.us>

pkgname=rlog
pkgver=1.4
pkgrel=9
pkgdesc="A flexible message logging facility for C++ programs and libraries"
arch=('loong64' 'x86_64')
url="https://www.arg0.net/rlog"
license=('LGPL')
depends=('gcc-libs')
source=(https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/${pkgname}/${pkgname}-${pkgver}.tar.gz{,.asc}
        ${pkgname}-section.patch)
md5sums=('c29f74e0f50d66b20312d049b683ff82'
         'SKIP'
         '69644989e07ceb5c265dfc0c6f770810')
validpgpkeys=('C08708603F2AA745ECA0D3665A9DB4032EAF4D80') # Valient Gough <vgough@pobox.com>

build() {
	cd "${srcdir}/${pkgname}-${pkgver}"
	patch -Np1 -i "${srcdir}/${pkgname}-section.patch"
	./configure --prefix=/usr
	make
}

package() {
	cd "${srcdir}/${pkgname}-${pkgver}"
	make DESTDIR="${pkgdir}/" install
}
